package cn.maxhou.mapper;

import cn.maxhou.entity.Storage;
import cn.maxhou.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageMapper {
    List<Storage> getPage(@Param("entity") Storage storage, @Param("offset")  Integer offset, @Param("pageSize")  Integer pageSize);
    Long count(@Param("entity")Storage storage);

    /**添加用户*/
    public int insert(Storage storage);
    /**修改用户*/
    public int update(Storage storage);
    /**根据ID获取用户详细信息*/
    public Storage getById(Long id);
    public int deleteById(Long id);

    public Storage getBysrCode(String srCode);
}
